<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/WEB-INF/template/defaultLayout.xhtml">

	<ui:define name="title">Auction House</ui:define>

	<ui:define name="body">

		<h:form id="proposalOverviewClientForm" style="width:95%">

			<p:dataTable id="projectList" var="prop" rowIndexVar="rowindex"
				value="#{projectsOverviewBB.projectsProposed}" editable="true">

				<f:facet name="header">#{i18n.projectsOverview}</f:facet>

				<p:column headerText="#{i18n.projectName}" filterBy="#{prop.title}"
					filterMatchMode="contains" sortBy="#{prop.title}">
					<h:outputText value="#{prop.title}" />
				</p:column>

				<p:column headerText="#{i18n.startDate}" sortBy="#{prop.startDate}">
					<h:outputText value="#{prop.startDate}" />
				</p:column>
				<p:column headerText="#{i18n.endDate}" sortBy="#{prop.endDate}">
					<h:outputText value="#{prop.endDate}" />
				</p:column>
				<p:column headerText="#{i18n.price}" sortBy="#{prop.price}">
					<h:outputText value="#{prop.price}" />
				</p:column>
				<p:column headerText="#{i18n.details}">
					<p:commandButton value="#{i18n.details}"
						action="#{projectsOverviewBB.toProjectDetails(prop)}" />
				</p:column>
			</p:dataTable>

		</h:form>
	</ui:define>
</ui:composition>